/* 
* Copyright (C) 2015,中油瑞飞, 
* All Rights Reserved 
* Description: TODO What the class does.   
* 
* @project 瑞信
* @author  Administrator
* @date    2016年9月16日-下午12:51:24
*
* Modification History: 
**********************************************************
* Date		  Author		    Comments
* 2016年9月16日	  Administrator			Create
**********************************************************
*/
package com.liuhaozzu.hibernate.demo.po;

import java.io.Serializable;

/**
 * TODO What the class does
 * <p>Title:com.liuhaozzu.hibernate.demo.po.ScoreId.java</p>
 * <p>Description: </p>
 * <p>Company:www.richfit.com</p>
 * @author liuhaozzu
 * @date   2016年9月16日-下午12:51:24
 *
 */
public class ScoreId implements Serializable{
	private int stuId;
	private int subjectId;
	/**
	 * @param i
	 * @param j
	 */
	public ScoreId(int stuId, int subjectId) {
		this.stuId=stuId;
		this.subjectId=subjectId;
	}
	public int getStuId() {
		return stuId;
	}
	public void setStuId(int stuId) {
		this.stuId = stuId;
	}
	public int getSubjectId() {
		return subjectId;
	}
	public void setSubjectId(int subjectId) {
		this.subjectId = subjectId;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + stuId;
		result = prime * result + subjectId;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ScoreId other = (ScoreId) obj;
		if (stuId != other.stuId)
			return false;
		if (subjectId != other.subjectId)
			return false;
		return true;
	}
	
	
}
